import 'package:boss/models/commission.dart';
import 'package:boss/ui/widget/custom_tab.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

import 'commission_list.dart';

class CommissionBrowser extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return CustomTab(
      tabs: ['进行中', '未开始', '已结束'],
      padding: EdgeInsets.only(top: 15.w),
      isScrollable: false,
      tabViews: <Widget>[
        CommissionList(Commission.BEGINNING),
        CommissionList(Commission.UN_BEGIN),
        CommissionList(Commission.END),
      ],
    );
  }
}
